package com.gitee.xzb617.mybatis.sqllog.context;

import com.alibaba.ttl.TransmittableThreadLocal;

public class ReqContextHolder {

    private final static ThreadLocal<ReqContext> SOURCE = new TransmittableThreadLocal<>();

    protected ReqContextHolder() {
    }

    public static ReqContext get() {
        return SOURCE.get();
    }

    public static void put(ReqContext fsp) {
        SOURCE.set(fsp);
    }

    public static void remove() {
        SOURCE.remove();
    }

}
